import type { RouteRecordRaw } from 'vue-router';

const manageZts: any[] = [];
for (let i = 2; i <= 5; i ++) {
  manageZts.push({
    path: 'zutai0' + i,
    name: 'PManageZutai0' + i,
    component: () => import('@T2/views/Project/Manage/zutai/zutai02/index.vue'),
    meta: {
      title: '管理系统--组态0' + i + '按菜单',
    },
  });
}
const routes: Array<RouteRecordRaw> = [
  ...manageZts,
  {
    path: 'zutai01',
    name: 'PManageZutai01',
    component: () => import('@T2/views/Project/Manage/zutai/zutai01/index.vue'),
    meta: { title: '管理系统--组态监控01--按单体' },
  },
  {
    path: 'workbench01',
    name: 'PManageWorkbench01',
    component: () => import('@T2/views/Project/Manage/workbench/workbench01/index.vue'),
    meta: { title: '管理系统--工作台' },
  },
  
  
  {
    path: 'map01',
    name: 'PManageMap01',
    component: () => import('@T2/views/Project/Manage/map/map01/index.vue'),
    meta: { title: '管理系统--地图' },
  },
  {
    path: 'informationdisclosure01',
    name: 'PManageInformationdisclosure01',
    component: () => import('@T2/views/Project/Manage/informationdisclosure/informationdisclosure01/index.vue'),
    meta: { title: '管理系统--信息公开01' },
  },
  {
    path: 'option01',
    name: 'PManageOption01',
    component: () => import('@T2/views/Project/Manage/option/option01/index.vue'),
    meta: { title: '管理系统--分组管理01' },
  },
  
  {
    path: 'statement01',
    name: 'PManageStatement01',
    component: () => import('@T2/views/Project/Manage/statement/statement01/index.vue'),
    meta: { title: '管理系统--运行分析' },
  },
  {
    path: 'statement02',
    name: 'PManageStatement02',
    component: () => import('@T2/views/Project/Manage/statement/statement02/index.vue'),
    meta: { title: '管理系统--运行分析02' },
  },
  
  {
    path: 'statement11',
    name: 'PManageStatement11',
    component: () => import('@T2/views/Project/Manage/statement/statement11/index.vue'),
    meta: { title: '管理系统--报表分析' },
  },
  {
    path: 'statement12',
    name: 'PManageStatement12',
    component: () => import('@T2/views/Project/Manage/statement/statement12/index.vue'),
    meta: { title: '管理系统--报表分析02' },
  },
  {
    path: 'statement13',
    name: 'PManageStatement13',
    component: () => import('@T2/views/Project/Manage/statement/statement13/index.vue'),
    meta: { title: '管理系统--报表分析03' },
  },
  
  /* warn0开头为实时报警，warn1开头为历史报警 */
  {
    path: 'warn01',
    name: 'PManageWarn01',
    component: () => import('@T2/views/Project/Manage/warn/warn01/index.vue'),
    meta: { title: '管理系统--报警--实时' },
  },
  /* warn0开头为实时报警，warn1开头为历史报警 */
  {
    path: 'warn11',
    name: 'PManageWarn11',
    component: () => import('@T2/views/Project/Manage/warn/warn11/index.vue'),
    meta: { title: '管理系统--报警--历史' },
  },
  
  {
    path: 'warnrule01',
    name: 'PManageWarnrule01',
    component: () => import('@T2/views/Project/Manage/warnrule/warnrule01/index.vue'),
    meta: { title: '管理系统--报警规则' },
  },
  
  {
    path: 'guzhang01',
    name: 'PManageGuzhang01',
    component: () => import('@T2/views/Project/Manage/guzhang/guzhang01/index.vue'),
    meta: { title: '管理系统--故障记录' },
  },
  
  {
    path: 'eventv101',
    name: 'PManageEventv101',
    component: () => import('@T2/views/Project/Manage/eventv1/eventv101/index.vue'),
    meta: { title: '管理系统--维修工单' },
  },
  
  {
    path: 'unit01',
    name: 'PManageUnit01',
    component: () => import('@T2/views/Project/Manage/unit/unit01/index.vue'),
    meta: { title: '管理系统--运行监测' },
  },
  {
    path: 'unit02',
    name: 'PManageUnit02',
    component: () => import('@T2/views/Project/Manage/unit/unit02/index.vue'),
    meta: { title: '管理系统--站点管理' },
  },
  
  {
    path: 'work01',
    name: 'PManageWork01',
    component: () => import('@T2/views/Project/Manage/work/work01/index.vue'),
    meta: { title: '管理系统--事件记录' },
  },
  
  {
    path: 'device01',
    name: 'PManageDevice01',
    component: () => import('@T2/views/Project/Manage/device/device01/index.vue'),
    meta: { title: '管理系统--设备管理1' },
  },
  {
    path: 'device02',
    name: 'PManageDevice02',
    component: () => import('@T2/views/Project/Manage/device/device02/index.vue'),
    meta: { title: '管理系统--设备管理2' },
  },
  
  {
    path: 'event01',
    name: 'PManageEvent01',
    component: () => import('@T2/views/Project/Manage/event/event01/index.vue'),
    meta: { title: '管理系统--流程工单' },
  },
  
  {
    path: 'department01',
    name: 'PManageDepartment01',
    component: () => import('@T2/views/Project/Manage/department/department01/index.vue'),
    meta: { title: '管理系统--组织管理' },
  },
  {
    path: 'role01',
    name: 'PManageRole01',
    component: () => import('@T2/views/Project/Manage/role/role01/index.vue'),
    meta: { title: '管理系统--角色管理' },
  },
  {
    path: 'iuser01',
    name: 'PManageIuser01',
    component: () => import('@T2/views/Project/Manage/iuser/iuser01/index.vue'),
    meta: { title: '管理系统--用户管理' },
  },
  
  {
    path: 'space01',
    name: 'PManageSpace01',
    component: () => import('@T2/views/Project/Manage/space/space01/index.vue'),
    meta: { title: '管理系统--建筑空间' },
  },
  {
    path: 'space2user01',
    name: 'PManageSpace2user01',
    component: () => import('@T2/views/Project/Manage/space2user/space2user01/index.vue'),
    meta: { title: '管理系统--业主管理' },
  },
];

export default routes;